import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    profile: JSON.parse(window.localStorage.getItem('profile')),
    trackIds: []
  },
  getters: {
  },
  mutations: {

    GETMUSICID(state, trackIds) {
      state.trackIds = trackIds
    },
    profile(state, val) {
      state.profile = val

    }
  },
  actions: {
  },
  modules: {
  }
})
